﻿using System;
using System.Diagnostics;

namespace Quail.Helpers
{
    public static class Quail
    {
        #region String

        public static IAssertPreExpression Must(this String o)
        {
            return FluentAssertion.Create(null, o, LogStatus.Fail);
        }

        public static IAssertPreExpression Should(this String o)
        {
            return FluentAssertion.Create(null, o, LogStatus.Warning);
        }

        public static IAssertPreExpression Might(this String o)
        {
            return FluentAssertion.Create(null, o, LogStatus.Information);
        }


        public static IAssertExpression MustBe(this String o)
        {
            return FluentAssertion.Create(null, o, LogStatus.Fail);
        }

        public static IAssertExpression ShouldBe(this String o)
        {
            return FluentAssertion.Create(null, o, LogStatus.Warning);
        }

        public static IAssertExpression MightBe(this String o)
        {
            return FluentAssertion.Create(null, o, LogStatus.Information);
        }

        #endregion String

        #region Int32

        public static IAssertPreExpression Must(this Int32 o)
        {
            return FluentAssertion.Create(null, o, LogStatus.Fail);
        }

        public static IAssertPreExpression Should(this Int32 o)
        {
            return FluentAssertion.Create(null, o, LogStatus.Warning);
        }

        public static IAssertPreExpression Might(this Int32 o)
        {
            return FluentAssertion.Create(null, o, LogStatus.Information);
        }

        public static IAssertExpression MustBe(this Int32 o)
        {
            return FluentAssertion.Create(null, o, LogStatus.Fail);
        }

        public static IAssertExpression ShouldBe(this Int32 o)
        {
            return FluentAssertion.Create(null, o, LogStatus.Warning);
        }

        public static IAssertExpression MightBe(this Int32 o)
        {
            return FluentAssertion.Create(null, o, LogStatus.Information);
        }

        #endregion

        public static IAssertPreExpression Must<T>(this T o)
        {            
            return FluentAssertion.Create(null, o, LogStatus.Fail);
        }
    }
}
